<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
 <title>MyBatis 整合  Spring 3</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
  </head>
  
  <body>
<br/>
      

<form id="update" action="update.do?id=${user.id}" method="post" name="update">

<table width="100%" border="0" cellspacing="0" cellpadding="4">

  <tr> 

    <td bgcolor="#000099"> 

      <table width="100%" border="0" cellspacing="0" cellpadding="4">

        <tr> 

          <td bgcolor="#FFFFFF">&nbsp;<b>*</b>&nbsp;</td>

          <td width="100%"><font color="#CCCCCC">&nbsp; <font color="#FFFFFF"><strong>编辑用户</strong></font></font></td>

        </tr>

      </table></td>

  </tr>

  <tr> 

     <td width="100%" bgcolor="#EAEAEA" colspan="2"> 

     <p> 
          <label for="textfield">用户名: </label>
          <input type="text" name="username"  value="${user.username}">

        </p>
        
         <p> 
           <label for="textfield">密码: </label>

          <input type="text" name="password" value="${user.password}">

        </p>
         <p> 
     <label for="textfield">Email: </label>

          <input type="text" name="email" value="${user.email}">

        </p>
         <p> 
          <label for="textfield">性别: </label>

          <input type="radio" name="roleId" value="0" 
          <c:if test="${user.roleId eq 0}">   
          checked="checked" </c:if>  
 >男
           <input type="radio" name="roleId" value="1" 
           <c:if test="${user.roleId eq 1}">   
          checked="checked" </c:if>  
           >女
        </p>
        
       
        <p> 

          <input type="submit" name="Submit" value="提交">

        </p>



  </td>

  </tr>

</table>
</form>


  </body>
</html>


